package wechat.rcv.controller;

import javax.annotation.meta.When;
import javax.persistence.criteria.CriteriaBuilder.Case;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import ch.qos.logback.core.joran.conditional.ThenAction;

@SuppressWarnings("all")
//@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","operations","roles","menus"})
public class WXNotification {
	
  public Long id;
	
  public String title;
  
  public String date;

  public Integer flag;
  
  public String weekDay;
  
  public Boolean isFinished;
  
//  public TrainingItem trainingItem;
//  
//  public ProjectInitItem projectInitItem;
//  
//  public CertificationItem certificationItem;
  

  public WXNotification() {

  }


	public String getWeekDay(Integer weekday) {
		switch (weekday) {
			case 1: this.weekDay = "周一"; break;
			case 2: this.weekDay = "周二"; break;
			case 3: this.weekDay = "周三"; break;
			case 4: this.weekDay = "周四"; break;
			case 5: this.weekDay = "周五"; break;
			case 6: this.weekDay = "周六"; break;
			case 7: this.weekDay = "周日"; break;
		}
		return this.weekDay;
	}
}


//class TrainingItem {
//	
//	public String name;
//	
//	public String topic;
//	
//	public String trainer;
//	
//	public String location;
//	
//	public String startDate;
//	
//	public String endDate;
//	
//	public TrainingItem() {
//
//	}
//	
//	
//}
//
//class ProjectInitItem {
//	
//	public String name;
//	
//	public String customer;
//	
//	public String majorSales;
//	
//	public ProjectInitItem() {
//
//	}
//}
//
//class CertificationItem {
//	
//	public String name;
//	
//	public String issueDate;
//	
//	public CertificationItem() {
//
//	}
//}